package com.wing.res.service.impl;

import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wing.product.model.response.ProductPlanningTreeVo;
import com.wing.res.dao.ResBenchmarkBookBomDao;
import com.wing.res.model.entity.ResBenchmarkBookBom;
import com.wing.res.model.entity.ResProBom;
import com.wing.res.model.request.ChildrenData;
import com.wing.res.model.request.ResProBomAddForm;
import com.wing.res.model.response.BenchmarkBookProcessEpVO;
import com.wing.res.service.ResBenchmarkBookBomService;
import com.wing.web.utils.JwtUtils;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

/**
 * skuBom管理-ServiceImpl
 *
 * @version 1.1.0
 * @Author hz
 * @Date 2024-09-23 20:59
 **/
@Service
public class ResBenchmarkBookBomServiceImpl extends ServiceImpl<ResBenchmarkBookBomDao, ResBenchmarkBookBom> implements ResBenchmarkBookBomService {

    /**
     * 查询bom树
     * @param id
     * @return
     */
    @Override
    public List<ProductPlanningTreeVo> selectBomTreeByBook(Long id) {
        return this.baseMapper.selectBomTreeByBook(id);
    }

    /**
     * 下载工序excel
     * @param params 参数
     * @return
     */
    @Override
    public List<BenchmarkBookProcessEpVO> exportBenchmarkBooKProcess(Map<String, Object> params) {
        return null;
    }
}
